package com.zdp.provider.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.web.client.RestTemplate;

/**
 * 类描述:
 *
 * @author ZhhengDP
 * @since 2021/8/16
 */
@Configuration
public class RestConfig {

    @Primary
    @Bean("restTemplate")
    public RestTemplate getRestTemplate1(){
        return new RestTemplate();
    }


}
